$(function(){
  // get block elem
  let $block = $('#main');

  // exent hash router
  window.onhashchange = function(){
    // get color -> get hash url
    let color = window.location.hash.substring(3,location.hash.length);
    console.log(color);
    // set color
    $block.css({
      'background-color': color
    });
  }
});
